<?php
	
	class Bot{
		
		private $id;
		private $active;
		private $data;
		private $idUsuario;
		
		public function __construct() {
			$this->data = gmdate(DATE_ISO8601);
			$this->SetActive(true);
			$this->id = 1;
		}
		
		public function setId($id) {
			$this->id = $id;
		}
		
		public function getId() {
			return $this->id;
		}
		
		public function isActive() {
			return $this->active;
		}
		
		public function SetActive($temp) {
			$this->active = $temp;
		}
		
		public function getData() {
			return $this->data;
		}
		
		public function setData($temp) {
			$this->data = $temp;
		}
		
		public function getIdUsuario() {
			return $this->idUsuario;
		}
		
		public function setIdUsuario($temp) {
			$this->idUsuario = $temp;
		}
		
		public function toJSONObject() { 
			return array(
				"id" => $this->id,
				"active" => $this->active,
				"data" => $this->data,
				"idUsuario" => $this->idUsuario
			);
		}
	}	
?>